package com.tracesystem.service;

import com.tracesystem.commons.Result;
import com.tracesystem.controller.Info.AllStatePageInfo;
import com.tracesystem.controller.form.*;
import com.tracesystem.model.IssueState;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Kevin Martin
 * @since 2022-03-23
 */
public interface IssueStateService extends IService<IssueState> {

    //修改缺陷状态分类
    public Result<?> updateStateDesc(RenewalStateDescForm renewalStateDescForm);

    //修改缺陷状态
    public Result<?> updateModuleState(RenewalStateModuleStateForm renewalStateModuleStateForm);

    //根据缺陷状态名更改缺陷状态
    public Result<AllStatePageInfo> findPageStateListByStateDesc(LikeStateListForm likeStateListForm);

    //获取所有缺陷状态
    public Result<AllStatePageInfo> getAllStateList(FindAllStateListForm findAllStateListForm);

    //添加缺陷状态
    public Result<?> insertState(AddStateForm addStateForm);

    //删除缺陷状态
    public Result<?> delectState(RemoveStateForm removeStateForm);

    //批量删除缺陷状态
    public Result<?> delectStateList(RemoveStateListForm removeStateListForm);
}
